package com.geovis.emergency.spd.biz.basic.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.geovis.emergency.spd.entity.basic.entity.BasicPunchRule;
import com.geovis.emergency.spd.entity.basic.pojo.dto.BasicPunchRuleQueryDTO;
import com.geovis.emergency.spd.entity.basic.pojo.dto.BasicPunchRuleSaveDTO;
import com.geovis.emergency.spd.entity.basic.pojo.dto.BasicPunchRuleUpdateDTO;

/**
 * <p>
 * 基础模块--打卡规则表 服务类
 * </p>
 *
 * @author lmolong
 * @since 2022-06-21
 */
public interface IBasicPunchRuleService extends IService<BasicPunchRule> {

    /**
     * 根据演练id和演练的用户id查询配置
     * @param pcDrillId 演练id
     * @param userId 用户id
     * @return
     */
    BasicPunchRule getByPcDrillId(String userId, String pcDrillId);

    LambdaQueryWrapper<BasicPunchRule> getWrapper(BasicPunchRuleQueryDTO queryDTO);

    void  saveBasicPunchRule(BasicPunchRuleSaveDTO saveDTO);

    void updateByIdBasicPunchRule(BasicPunchRuleUpdateDTO updateDTO);

}
